
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Test {
	static public Adres adres;


	static public User user;
	public static JPanel checkVisible[]={new ImagePanel(new ImageIcon("tittle.jpg").getImage()), new RejestrujPanel(), new Rejestruj_cdPanel(), new showProfile(), new Loguj(), new Main_profile()};
	public static JPanel main_profile[]={new Main_profile_orders(),new Main_profile_settings(), new Main_profile_profile()};
	
	
	public static void main(String[] args) {
	
    JFrame frame = new JFrame();
    
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setLocation(500, 100);
    frame.setSize(600, 435);
    frame.setVisible(true);
    
    
    for (int i = 0; i < checkVisible.length; i++) frame.add(checkVisible[i]);
    for (int j = 0; j < main_profile.length; j++) frame.add(main_profile[j]);
  }
}

